<cpanel include="../../config.php">

<?

/***************************************************************************
 *                                 hotlink_protection.php
 *                            -------------------
 *   Begin                : Thursday, April 16, 2005
 *   Copyright            : (C) 2005 Point and Code
 *   Domain               : http://www.pointandcode.com/
 *   Email                : support@pointandcode.com
 *   Version              : 1.0.1
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/

$html_root_path = '../../';
$page_title = $lang['hotlink_protection'];
include $root_path.'common.php';
include $root_path.'page_header.php';


$template->set_filenames(array(
	'body' => $root_path.$template_path.'server/hotlink_protection.tpl')
);

$status = <<<EOFpacman
<cpanel Mime="linkenable()">
EOFpacman;

if ($status == "enabled") {
	$template->assign_block_vars('switch_hotlink_disable', array());
};

$urls = <<<EOFpacman
<cpanel Mime="linkurls()">
EOFpacman;

$extensions = <<<EOFpacman
<cpanel Mime="linkexts()">
EOFpacman;

$redirect_url = <<<EOFpacman
<cpanel Mime="linkrurl()">
EOFpacman;

$allow_null = <<<EOFpacman
<cpanel Mime="linkallownull()">
EOFpacman;

$template->assign_vars(array(
	'URLS' => $urls,
	'EXTENSIONS' => $extensions,
	'REDIRECT_URL' => $redirect_url,
	'ALLOW_NULL' => $allow_null,
	'HOTLINK_STATUS' => $status,
	'U_DISABLE' => 'hotlink_protection_disable_done.php',
	'S_ACTION' => 'hotlink_protection_enable_done.php',
	
	'L_HOTLINK_PROTECTION' => $lang['hotlink_protection'],
	'L_HOTLINK_PROTECTION_INTRO' => $lang['hotlink_protection_intro'],
	'L_HOTLINK_STATUS' => $lang['hotlink_status'],
	'L_DISABLE' => $lang['disable_it'],
	'L_ENABLE_HOTLINK' => $lang['enable_hotlink'],
	
	
));

//
// Woohoo! All done!
//
$template->pparse('body');


include $root_path.'page_tail.php';




?>